package com.itheima.output;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class OutputDemo9 {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("E:\\BaiduNetdiskDownload\\2021黑马就业班JavaV11\\01javaEE在线就职班\\JavaEE在线就业课资料（新版）\\1.阶段一-Java基础\\9.IO流\\day19_IO流01\\资料\\素材\\嘿嘿嘿.avi");
        FileOutputStream fos = new FileOutputStream("ByteStream\\a.avi");

        int b;
        while ((b = fis.read()) != -1) {
            fos.write(b);
        }

        fis.close();
        fos.close();
    }
}
